//
//  HPUser.h
//  LockTest
//
//  Created by ZhangBo on 2018/12/2.
//  Copyright © 2018 ZhangBo. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class HPUserBuilder;

@interface HPUser : NSObject

@property(nonatomic, copy) NSString *userId;
@property(nonatomic, copy) NSString *firstName;
@property(nonatomic, copy) NSString *lastName;
@property(nonatomic, copy) NSString *gender;
@property(nonatomic, copy) NSDate *dateOfBirth;
@property(nonatomic, strong) NSArray *albums;

// 模型提供了类方法 userWithBlock
+ (instancetype)userWithBlock:(void (^)(HPUserBuilder *))block;

- (instancetype)initWithBuilder:(HPUserBuilder *)builder;

- (instancetype)initWithDictionary:(NSDictionary *)dictionary;

- (void)freeze;

@end

NS_ASSUME_NONNULL_END
